/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/9 下午5:11
 * LastModified: 2020/03/09 17:11:09
 */

package com.qolome.knowledge.design.pattern.flyweight.ticket;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试
 * @date 2020年 03月09日 17:11:56
 */
public class Test {

    public static void main(String[] args) {

        ITicket ticket = TicketFactory.queryTicket("忻州", "北京");
        ticket.showInfo("二等座");
        ticket = TicketFactory.queryTicket("忻州", "北京");
        ticket.showInfo("一等座");


    }
}
